﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="reg.aspx.cs" Inherits="lgweb.user.reg" %>
<%@ Register Src="~/control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/control/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户注册_当事人通道 - 深圳市龙岗区人民法院网站</title>
    <meta content="龙岗区人民法院,深圳市龙岗区人民法院网站" name="keywords" />
    <meta content="龙岗区人民法院,深圳市龙岗区人民法院网站" name="description" />
    <link href="/favicon.ico" type="image/x-icon" rel="Bookmark" />
    <link href="/favicon.ico" type="image/x-icon" rel="shortcut icon" />
    <link href="/css/base.css" rel="stylesheet" type="text/css" />
    <link href="/css/litigant/litigant.css" rel="stylesheet" type="text/css" />
    <script src="/js/common/base.js" type="text/javascript"></script>
</head>
<body>
    <div class="g_body">
        <uc1:header ID="header1" runat="server" />
        <div class="g_content">
            
            <div class="g_box950">
                    <div class="s_title">当前位置：<a href="/index.aspx">首页</a> > 用户注册</div>
                    <div class="s_box">
                        
                        <div class="bogin w556 h700 mgnt50"  id="divApp">
                            <div class="sear h695 w556">
                                <div class="tle">
                                    <h3>用户注册</h3><em></em>
                                </div>
                                <form  name="form1" action="regSuccess.aspx" onsubmit="return CheckInfo();" method="post">
                                <table cellpadding="0" cellspacing="0" class="g_form">
                                    <tr>
                                        <th>姓名：</th>
                                        <td><input type="text" id="txtUserName" name="txtUserName" maxlength="20" class="txt w160"  /><label class="red">*</label></td>
                                    </tr>
                                    <tr>
                                        <th>密码：</th>
                                        <td><input type="password" id="txtUserPWD" name="txtUserPWD" maxlength="20" class="txt w160"  /><label class="red">*</label></td>
                                    </tr>
                                    <tr>
                                        <th>重新输入密码：</th>
                                        <td><input type="password" id="txtConfrimUserPWD" maxlength="20" class="txt w160"  /><label class="red">*</label></td>
                                    </tr>
                                    <tr>
                                        <th>性别：</th>
                                        <td><input type="radio" name="rdoSexuality" value="" />男<input type="radio" value="" class="mgl10" name="rdoSexuality" />女</td>
                                    </tr>
                                    <tr>
                                        <th>证件类型：</th>
                                        <td><input type="radio" name="rdoIdentityType" value="0"  />身份证<input type="radio" class="mgl10" name="rdoIdentityType" value="1" />护照</td>
                                    </tr>
                                    <tr>
                                        <th>证件号码：</th>
                                        <td><input type="text" id="txtIdentityCard" name="txtIdentityCard" maxlength="20" class="txt w160"  /><label class="red">*</label>可输入身份证号码、护照号码</td>
                                    </tr>
                                    <tr>
                                        <th>移动电话：</th>
                                        <td><input type="text" id="txtMobile" name="txtMobile" maxlength="20" class="txt w160"  /><label class="red">*</label>用于接收短信通知</td>
                                    </tr>
                                    <tr>
                                        <th>固定电话：</th>
                                        <td><input type="text" id="txtPhone" name="txtPhone" maxlength="20" class="txt w160"  /></td>
                                    </tr>
                                    <tr>
                                        <th>电子邮箱：</th>
                                        <td><input type="text" id="txtEmail" name="txtEmail" maxlength="20" class="txt w300"  /></td>
                                    </tr>
                                    <tr>
                                        <th>联系地址：</th>
                                        <td><input type="text" id="txtAddress" name="txtAddress" maxlength="20" class="txt w300"  /></td>
                                    </tr>
                                    <tr>
                                        <th><input type="hidden" id="hdnIdentityType" name="hdnIdentityType" value="0" /><input type="hidden" id="hdnSexuality" name="hdnSexuality" value="0" /></th>
                                        <td><input type="submit"  value="提交注册"  class="btn_gray"  /></td>
                                    </tr>
                                </table>
                                </form>
                            </div>
                        </div>
                       
                        <div class="clear"></div>
                    </div>
                    <div class="s_ft">
                    </div>
                </div>
            <div class="clear"></div>
            
            
        </div>
        <uc2:footer ID="footer1" runat="server" />
    </div>
</body>
</html>

<script type="text/javascript">
    function CheckInfo() {
        var sName = document.getElementById("txtUserName").value;
        var re = /^^[a-zA-Z0-9\-]{4,10}$|^[a-zA-Z0-9\-]{4,10}\.[a-zA-Z0-9\-]{4,10}$/;
        if (!re.test(sName)) {
            alert("姓名必须为4-10个字符，不能使用特殊字符！");
            return false;
        }

        var sPassword = document.getElementById("txtUserPWD").value;
        var re1 = /^^[a-zA-Z0-9\-]{5,15}$|^[a-zA-Z0-9\-]{5,15}\.[a-zA-Z0-9\-]{5,15}$/;
        if (!re1.test(sPassword)) {
            alert("密码必须为大于5小于15个字符.不能使用特殊字符！");
            return false;
        }

        var sConfrimPassword = document.getElementById("txtConfrimUserPWD").value;
        var re2 = /^^[a-zA-Z0-9\-]{5,15}$|^[a-zA-Z0-9\-]{5,15}\.[a-zA-Z0-9\-]{5,15}$/;
        if (!re2.test(sConfrimPassword)) {
            alert("重新输入密码必须大于5小于15个字符.不能使用特殊字符！");
            return false;
        }

        if (sPassword != sConfrimPassword) {
            alert("密码不一致，请检查二次密码是否输入一致！");
            return false;
        }

        var sIdentityCard = document.getElementById("txtIdentityCard").value;
        if (sIdentityCard.length <= 0) {
            alert("证件号码不能为空！");
            return false;
        }

        var sMobile = document.getElementById("txtMobile").value;
        var re2 = /^^[0-9]{11,11}$/;
        if (!re2.test(sMobile)) {
            alert("移动电话格式不正确！");
            return false;
        }

        var aIdentityType = document.getElementsByName("rdoIdentityType");
        for (var i = 0; i < aIdentityType.length; i++) {
            if (aIdentityType[i].checked) {
                document.getElementById("hdnIdentityType").value = aIdentityType[i].value;
            }
        }

        var aSexuality = document.getElementsByName("rdoSexuality");
        for (var i = 0; i < aSexuality.length; i++) {
            if (aSexuality[i].checked) {
                document.getElementById("hdnSexuality").value = aSexuality[i].value;
            }
        }

        return true;
    }
   
</script>